<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>$(NetCoreAppToolCurrent)</TargetFramework>
    <Nullable>enable</Nullable>
    <NoWarn>$(NoWarn);SYSLIB1045</NoWarn>

    <IsPackable>false</IsPackable>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <Platforms>x64;x86</Platforms>
    <PlatformTarget>AnyCPU</PlatformTarget>

    <RuntimeIdentifiers>linux-x64;win-x64;osx-x64</RuntimeIdentifiers>
    <Configurations>Debug;Release;Checked</Configurations>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisCSharpVersion)" />
    <PackageReference Include="Microsoft.DotNet.Cecil" Version="$(MicrosoftDotNetCecilVersion)" />

    <ProjectReference Include="$(ToolsProjectRoot)illink/test/Mono.Linker.Tests.Cases/**/*.csproj" />
    <ProjectReference Include="$(ToolsProjectRoot)illink/test/Mono.Linker.Tests.Cases.Expectations/Mono.Linker.Tests.Cases.Expectations.csproj" />
    <ProjectReference Include="../ILCompiler.Compiler/ILCompiler.Compiler.csproj" />
    <ProjectReference Include="../ILCompiler.RyuJit/ILCompiler.RyuJit.csproj" />
  </ItemGroup>

  <ItemGroup>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.RuntimeBinDirectory">
      <Value>$(RuntimeBinDir)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.MicrosoftNetCoreAppRuntimePackDirectory">
      <Value>$(MicrosoftNetCoreAppRuntimePackRidLibTfmDir)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.Configuration">
      <Value>$(Configuration)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.ILToolsDir">
      <Value>$(CoreCLRArtifactsPath)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.ArtifactsBinDir">
      <Value>$(ArtifactsBinDir)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.TargetFramework">
      <Value>$(TargetFramework)</Value>
    </RuntimeHostConfigurationOption>
    <RuntimeHostConfigurationOption Include="Mono.Linker.Tests.LinkerTestDir">
      <Value>$(ToolsProjectRoot)illink/test/</Value>
    </RuntimeHostConfigurationOption>
  </ItemGroup>

  <Import Project="$(ToolsProjectRoot)illink\test\Trimming.Tests.Shared\Trimming.Tests.Shared.projitems" Label="Shared" />

</Project>
